import Mock from "mockjs";
// 模拟生成一个随机时间
const time = Mock.mock({
  time: '@date("yyyy-MM-dd HH:mm:ss")', // 可以定义时间的格式
}).time;
const posts = [
    {
        id: '1',
        userId:'1',
        name: 'John Doe',
        avatar: 'http://dummyimage.com/100x100/f279a2&text=Avatar',
        gender: '男',
        focus: [],
        fans: [
            {"id":"6"}
        ],
        content: 'I just moved to New York! hello world,hello guys,everybody',
        media: [{ "assetId": null, "base64": null, "duration": null, "exif": null, "fileName": "1000028202.jpg", "fileSize": 715429, "height": 1728, "mimeType": "image/jpeg", "rotation": null, "type": "image", "uri": "file:///data/user/0/host.exp.exponent/files/90a74955-9566-4fdc-8010-7a06d6edf599.jpeg", "width": 3840 },{ "assetId": null, "base64": null, "duration": null, "exif": null, "fileName": "1000028202.jpg", "fileSize": 715429, "height": 1728, "mimeType": "image/jpeg", "rotation": null, "type": "image", "uri": "file:///data/user/0/host.exp.exponent/files/90a74955-9566-4fdc-8010-7a06d6edf599.jpeg", "width": 3840 },{ "assetId": null, "base64": null, "duration": null, "exif": null, "fileName": "1000028202.jpg", "fileSize": 715429, "height": 1728, "mimeType": "image/jpeg", "rotation": null, "type": "image", "uri": "file:///data/user/0/host.exp.exponent/files/90a74955-9566-4fdc-8010-7a06d6edf599.jpeg", "width": 3840 },{ "assetId": null, "base64": null, "duration": null, "exif": null, "fileName": "1000028202.jpg", "fileSize": 715429, "height": 1728, "mimeType": "image/jpeg", "rotation": null, "type": "image", "uri": "file:///data/user/0/host.exp.exponent/files/90a74955-9566-4fdc-8010-7a06d6edf599.jpeg", "width": 3840 }],
        location: 'New York, USA',
        country: '美国',
        createTime: '2025-01-07 12:00:00', // 随机生成时间
        goods: ["1", "2"],
        comments: [
            { 
                "id": "1", 
                "content": "hello",
                "createTime":"2025-01-09 12:00:00",
                user: {
                    id: '1', // 示例用户 ID（需要从登录状态中获取）
                    name: 'Tom', // 示例用户名
                    avatar: 'http://dummyimage.com/100x100/748523&text=Avatar', // 示例头像
                }
            },
            { 
                "id": "2", 
                "content": "hi",
                "createTime":"2025-01-09 12:00:00",
                user: {
                    id: '2', // 示例用户 ID（需要从登录状态中获取）
                    name: 'Tracy', // 示例用户名
                    avatar: 'http://dummyimage.com/100x100/383645&text=Avatar', // 示例头像
                }
            },
        ]
    },
    {
        id: '2',
        userId:'2',
        name: 'John Doe',
        avatar: 'http://dummyimage.com/100x100/f279a2&text=Avatar',
        gender: '女',
        focus: [],
        fans: [],
        content: 'I just moved to New York!',
        media: [{"assetId": null, "base64": null, "duration": null, "exif": null, "fileName": "1000028463.jpg", "fileSize": 357608, "height": 1080, "mimeType": "image/jpeg", "rotation": null, "type": "image", "uri": "file:///data/user/0/host.exp.exponent/files/29c01f39-2be2-42f7-bd95-080620d02129.jpeg", "width": 2400}],
        location: 'New York, USA',
        country: '美国',
        createTime: '2025-01-07 13:00:00', // 随机生成时间
        goods: ["1", "2"],
        comments: [
            { 
                "id": "1", 
                "content": "hello",
                "createTime":"2025-01-09 12:00:00",
                user: {
                    id: '1', // 示例用户 ID（需要从登录状态中获取）
                    name: 'Tom', // 示例用户名
                    avatar: 'http://dummyimage.com/100x100/748523&text=Avatar', // 示例头像
                }
            },
            { 
                "id": "2", 
                "content": "hi",
                "createTime":"2025-01-09 12:00:00",
                user: {
                    id: '2', // 示例用户 ID（需要从登录状态中获取）
                    name: 'Tracy', // 示例用户名
                    avatar: 'http://dummyimage.com/100x100/748523&text=Avatar', // 示例头像
                }
            },
        ]
    },
    {
        id: '3',
        userId:'3',
        name: 'John Doe',
        avatar: 'http://dummyimage.com/100x100/f279a2&text=Avatar',
        gender: '女',
        focus: [],
        fans: [],
        content: 'I just moved to New York!',
        media: [{"assetId": null, "base64": null, "duration": null, "exif": null, "fileName": "1000028463.jpg", "fileSize": 357608, "height": 1080, "mimeType": "image/jpeg", "rotation": null, "type": "image", "uri": "file:///data/user/0/host.exp.exponent/files/29c01f39-2be2-42f7-bd95-080620d02129.jpeg", "width": 2400}],
        location: 'New York, USA',
        country: '美国',
        createTime: '2025-01-07 13:00:00', // 随机生成时间
        goods: ["1", "2"],
        comments: [
            { 
                "id": "1", 
                "content": "hello",
                "createTime":"2025-01-09 12:00:00",
                user: {
                    id: '1', // 示例用户 ID（需要从登录状态中获取）
                    name: 'Tom', // 示例用户名
                    avatar: 'http://dummyimage.com/100x100/748523&text=Avatar', // 示例头像
                }
            },
            { 
                "id": "2", 
                "content": "hi",
                "createTime":"2025-01-09 12:00:00",
                user: {
                    id: '2', // 示例用户 ID（需要从登录状态中获取）
                    name: 'Tracy', // 示例用户名
                    avatar: 'http://dummyimage.com/100x100/748523&text=Avatar', // 示例头像
                }
            },
        ]
    },
    {
        id: '4',
        userId:'4',
        name: 'John Doe',
        avatar: 'http://dummyimage.com/100x100/f279a2&text=Avatar',
        gender: '男',
        focus: [],
        fans: [],
        content: 'I just moved to New York!',
        media: [{ "assetId": null, "base64": null, "duration": null, "exif": null, "fileName": "1000028202.jpg", "fileSize": 715429, "height": 1728, "mimeType": "image/jpeg", "rotation": null, "type": "image", "uri": "file:///data/user/0/host.exp.exponent/files/641ef4b9-64dd-4850-883c-081d95934ada.jpeg", "width": 3840 }],
        location: 'New York, USA',
        country: '美国',
        createTime: '2025-01-07 13:00:00', // 随机生成时间
        goods: ["1", "2"],
        comments: [
            { 
                "id": "1", 
                "content": "hello",
                "createTime":"2025-01-09 12:00:00",
                user: {
                    id: '1', // 示例用户 ID（需要从登录状态中获取）
                    name: 'Tom', // 示例用户名
                    avatar: 'http://dummyimage.com/100x100/748523&text=Avatar', // 示例头像
                }
            },
            { 
                "id": "2", 
                "content": "hi",
                "createTime":"2025-01-09 12:00:00",
                user: {
                    id: '2', // 示例用户 ID（需要从登录状态中获取）
                    name: 'Tracy', // 示例用户名
                    avatar: 'http://dummyimage.com/100x100/748523&text=Avatar', // 示例头像
                }
            },
        ]
    },
    {
        id: '5',
        userId:'5',
        name: 'John Doe',
        avatar: 'http://dummyimage.com/100x100/f279a2&text=Avatar',
        gender: '女',
        focus: [],
        fans: [],
        content: 'I just moved to New York!',
        media: [{"assetId": null, "base64": null, "duration": null, "exif": null, "fileName": "1000028463.jpg", "fileSize": 357608, "height": 1080, "mimeType": "image/jpeg", "rotation": null, "type": "image", "uri": "file:///data/user/0/host.exp.exponent/files/29c01f39-2be2-42f7-bd95-080620d02129.jpeg", "width": 2400}],
        location: 'New York, USA',
        country: '美国',
        createTime: '2025-01-07 13:00:00', // 随机生成时间
        goods: ["1", "2"],
        comments: [
            { 
                "id": "1", 
                "content": "hello",
                "createTime":"2025-01-09 12:00:00",
                user: {
                    id: '1', // 示例用户 ID（需要从登录状态中获取）
                    name: 'Tom', // 示例用户名
                    avatar: 'http://dummyimage.com/100x100/748523&text=Avatar', // 示例头像
                }
            },
            { 
                "id": "2", 
                "content": "hi",
                "createTime":"2025-01-09 12:00:00",
                user: {
                    id: '2', // 示例用户 ID（需要从登录状态中获取）
                    name: 'Tracy', // 示例用户名
                    avatar: 'http://dummyimage.com/100x100/748523&text=Avatar', // 示例头像
                }
            },
        ]
    },
    {
        id: '6',
        userId:'6',
        name: 'lala',
        avatar: 'http://dummyimage.com/100x100/f279a2&text=Avatar',
        gender: '女',
        focus: [
            {"id":"1"}
        ],
        fans: [],
        content: '(*´▽｀)ノノ',
        media: [{ "assetId": null, "base64": null, "duration": null, "exif": null, "fileName": "1000028202.jpg", "fileSize": 715429, "height": 1728, "mimeType": "image/jpeg", "rotation": null, "type": "image", "uri": "file:///data/user/0/host.exp.exponent/files/90a74955-9566-4fdc-8010-7a06d6edf599.jpeg", "width": 3840 },{ "assetId": null, "base64": null, "duration": null, "exif": null, "fileName": "1000028202.jpg", "fileSize": 715429, "height": 1728, "mimeType": "image/jpeg", "rotation": null, "type": "image", "uri": "file:///data/user/0/host.exp.exponent/files/90a74955-9566-4fdc-8010-7a06d6edf599.jpeg", "width": 3840 },{ "assetId": null, "base64": null, "duration": null, "exif": null, "fileName": "1000028202.jpg", "fileSize": 715429, "height": 1728, "mimeType": "image/jpeg", "rotation": null, "type": "image", "uri": "file:///data/user/0/host.exp.exponent/files/90a74955-9566-4fdc-8010-7a06d6edf599.jpeg", "width": 3840 },{ "assetId": null, "base64": null, "duration": null, "exif": null, "fileName": "1000028202.jpg", "fileSize": 715429, "height": 1728, "mimeType": "image/jpeg", "rotation": null, "type": "image", "uri": "file:///data/user/0/host.exp.exponent/files/90a74955-9566-4fdc-8010-7a06d6edf599.jpeg", "width": 3840 }],
        location: '中国，河北，保定',
        country: '中国',
        createTime: '2025-01-12 12:00:00', // 随机生成时间
        goods: ["1", "2"],
        comments: [
            { 
                "id": "1", 
                "content": "hello",
                "createTime":"2025-01-09 12:00:00",
                user: {
                    id: '1', // 示例用户 ID（需要从登录状态中获取）
                    name: 'Tom', // 示例用户名
                    avatar: 'http://dummyimage.com/100x100/748523&text=Avatar', // 示例头像
                }
            },
            { 
                "id": "2", 
                "content": "hi",
                "createTime":"2025-01-09 12:00:00",
                user: {
                    id: '2', // 示例用户 ID（需要从登录状态中获取）
                    name: 'Tracy', // 示例用户名
                    avatar: 'http://dummyimage.com/100x100/748523&text=Avatar', // 示例头像
                }
            },
        ]
    },
]
export default posts
